#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
int main()
{
	int a, b, c;
	for (a = 0; a <= 15; a++)
	{
		for (b = 0; b <= 22.5; b++)
		{
			for (c = 0; c <= 45; c += 2)
			{
				if (a + b + c == 45 && 3 * a + 2 * b + c / 2 == 45)
				{
					printf("men=%d,women=%d,children=%d\n", a, b, c);
				}
			}
		}
	}return 0;

}
